package com.fa4j.code.generate.model;

import com.fa4j.common.base.model.AbstractCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Map;

@Data
@Schema(description = "代码生成参数")
public class CodeGenerateCmd extends AbstractCmd {

    @NotEmpty
    @Schema(description = "项目名称")
    private String projectName;

    @NotNull
    @Schema(description = "模板类型")
    private CodeTemplateType templateType;

    @Schema(description = "生成参数")
    private Map<String, Object> generateParams;
}
